import Debounce from './debounce.js';
import Draggable from './draggable.js';

const directives = {
    Debounce,
    Draggable
}

export default {
    install(app) {
        // 注册指令
        Object.keys(directives).forEach(key => {
            app.directive(key, directives[key])  // 注册(名字， 指令代码)
        })
    }
}